package animal;

public class Dog extends Animal implements Trainable, Swimmable {
    private String breed;
    public Dog(String name,int age,String breed) {
    	super(name,age);
    	this.breed=breed;
    }
    public String getBreed() {
    	return breed;
    }
	
	@Override
	public void swim() {
	System.out.println(getName()+"正在游泳");

	}

	@Override
	public void train() {
	System.out.println(getName()+"正在训练");

	}

	@Override
	public void makeSound() {
	System.out.println(getName()+"汪汪叫");

	}

}
